import defaultData from "./data";
import Props from "../base/Props";
import DefaultVal from '../../../../common/default-value';

export default class TelephoneProps extends Props {
  renderDefaultValue() {
    const { data } = this.props;
    const { defaultValue } = data;

    return (
      <DefaultVal ecId={`${this && this.props && this.props.ecId || ''}_DefaultVal@0cg371`} 
        value={defaultValue}
        onChange={super.handlePropChange('defaultValue')}
      />
    );
  }
}

TelephoneProps.defaultProps = {
  data: defaultData
};